/*
 * terminator.cpp
 *
 *  Created on: Oct 29, 2013
 *      Author: m
 */

#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <sstream>
#include "CPrinter.h"
#include "NewSharedMemory.h"
#include "NewSemaphore.h"
#include "Sequence.h"
#include "DefinicionesComunes.h"

using namespace ipc;

int main (void)
{
    CPrinter::setHeader( "terminator" );

    SharedMemory<int>::destroy( BASE_FILE, SHM_CONTADOR );
    SharedMemory<int>::destroy( BASE_FILE, SHM_DATOS );
    Semaphore::destroy( BASE_FILE, SEM_PROCESO );
    Semaphore::destroy( BASE_FILE, MUTEX_CONTADOR );
    Sequence::destroy( BASE_FILE, SEQ_ID );

    CPrinter::printOut( "done" );

    return 0;
}
